package org.lq.shopping.dao;

import java.sql.Date;
import java.util.List;

import org.lq.shopping.base.BaseDao;
import org.lq.shopping.entity.ShopStock;

public interface ShopStockDao extends BaseDao<ShopStock> {

	/**
	 * 根据入库人查询入库信息
	 * @param name  入库人姓名
	 * @return
	 */
	List<ShopStock> getStockByPersonName(String name,int pageIndex,int pageSize);
	/**
	 * 根据时间区间查询入库信息
	 * @param beginTime   开始时间
	 * @param endTime  结束时间
	 * @return
	 */
	List<ShopStock> getStockBetweenDate(Date beginTime,Date endTime,int pageIndex,int pageSize);

	List<ShopStock> getStockPersonName(String name);
	
	List<ShopStock> getBetweenDate(Date beginTime,Date endTime);
	
}
